using System;
using System.Collections.Generic;
using System.Text;

namespace tKitchen
{
    public class RecipeComment
    {
        int recipeCommentId;
        string comment;
        DateTime date;

        #region Properties
        public int RecipeCommentId
        {
            get { return recipeCommentId; }
            set { recipeCommentId = value; }
        }
        
        public string Comment
        {
            get { return comment; }
            set { comment = value; }
        }


        public DateTime Date
        {
            get { return date; }
            set { date = value; }
        }
        #endregion

        public RecipeComment()
        {
            recipeCommentId = -1;
        }

        public RecipeComment(RecipeCommentPO poIn)
        {
            recipeCommentId = poIn.RecipeCommentId;
            comment = poIn.Comment;
            date = poIn.Date;
        }


        public RecipeComment(int idIn, string commentIn, DateTime dateIn)
        {
            recipeCommentId = idIn;
            comment = commentIn;
            date = dateIn;
        }



        internal RecipeComment Copy()
        {
            RecipeComment temp = new RecipeComment();
            temp.Comment = this.Comment;
            temp.Date = this.Date;
            temp.RecipeCommentId = this.RecipeCommentId;

            return temp;
        }
    }
}
